package com.ticket.sass.common.entity.tenant;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 
 * </p>
 *
 * @author ywb
 * @since 2024-04-14
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("ticket_check_configs")
@ApiModel(value="TicketCheckConfigEntity对象")
public class TicketCheckConfigEntity implements Serializable {
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;
    
    @TableField(value = "is_only")
    private Boolean isOnly;
    
    @TableField(value = "is_recommend")
    private Boolean isRecommend;
    
    @TableField(value = "is_default")
    private Boolean isDefault;
    
    @ApiModelProperty(value = "影院 id")
    private Long cinemaId;
    
    @ApiModelProperty(value = "租户 id")
    private Long tenantId;
    
    @ApiModelProperty(value = "创建时间")
    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createdAt;
    
    @ApiModelProperty(value = "更新时间")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime updatedAt;
    
    @ApiModelProperty(value = "删除时间")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime deletedAt;
    
    public TicketCheckConfigEntity() {
    }
    
    public TicketCheckConfigEntity(Boolean isOnly, Boolean isRecommend, Boolean isDefault) {
        this.isOnly = isOnly;
        this.isRecommend = isRecommend;
        this.isDefault = isDefault;
    }
}